package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.dto.CreativeHomeDTO;
import com.example.springboot.entity.CCollection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface ICCollectionService extends IService<CCollection> {
    int getCount(Integer creativeId);

    List<CreativeHomeDTO> getByUser(Integer userId);

    boolean judge(Integer userId, Integer creativeId);

    boolean removeByCreative(Integer creativeId);

    Result insertCollection(CCollection cCollection);

    Result removeCollection(CCollection cCollection);
}
